package com.cloud.feign;

import com.cloud.util.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author root
 * @description TODO
 * @date 2020/11/28 16:30
 */
@FeignClient(name = "nacos-shop")
public interface ShopFeign {
    @RequestMapping(method = RequestMethod.POST, value = "/shop/update")
    JsonResult update(@RequestParam("shopId") Long shopId);

    @RequestMapping(method = RequestMethod.GET, value = "/shop/find")
    JsonResult find(@RequestParam("shopId") Long shopId);
}
